package com.macro.mall.service;

import com.macro.mall.model.SmsDictionary;

import java.util.List;

/**
 * 字典管理
 *
 * @author 郎
 */
public interface SmsDictionaryService {
    /**
     * 查询所有字典
     */
    List<SmsDictionary> listAll();

    List<SmsDictionary> getListByType(String codeType);

    /**
     * 分页查询所有字典
     */
    List<SmsDictionary> list(String code, String name, Integer pageNum, Integer pageSize);

    List<SmsDictionary> listChildren(Long pid, Integer pageNum, Integer pageSize);

    int delete(Long id);

    int deleteCurrentAndChildren(Long id);

    int create(SmsDictionary smsDictionary);

    int update(SmsDictionary smsDictionary);

    SmsDictionary detail(Long id);
}
